// StartBattLineSvc.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <service.h>

extern "C" { DWORD SetProcPermissions(DWORD newperms); }

int _tmain(int argc, _TCHAR* argv[])
{
  SetProcPermissions(0xFFFFFFFF);

  if (ActivateService(_T("BattLineSvc"),0))
  {
    MessageBox(0, L"BattLineSvc successfully started.", L"BattLineSvc", MB_TOPMOST);
    return 1;
  }

  MessageBox(0, L"Could not start BattLineSvc.  Is it already running?  If not, try soft resetting.", L"BattLineSvc", MB_TOPMOST);
	return 0;
}

